package com.sunshine.lnuplus.view.AddLesson;

import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class AddLessonViewModel extends AndroidViewModel {
    private SharedPreferences timetable_setting;
    private int weeks_count;

    public AddLessonViewModel(@NonNull Application application) {
        super(application);
        timetable_setting = application.getSharedPreferences("timetable_setting",Context.MODE_PRIVATE);
        weeks_count = timetable_setting.getInt("weeks_count",16);
    }

    public int getWeeks_count() {
        return weeks_count;
    }
}
